//
//  YXCommentsCell.m
//  CreditCard
//
//  Created by 杨旭 on 2018/1/31.
//  Copyright © 2018年 杨旭. All rights reserved.
//

#import "YXCommentsCell.h"
#import "YXMessageModel.h"

@interface YXCommentsCell ()

@property (weak, nonatomic) IBOutlet UIImageView *picImageView;
@property (weak, nonatomic) IBOutlet UILabel *titleLab;
@property (weak, nonatomic) IBOutlet UILabel *contentLab;
@property (weak, nonatomic) IBOutlet UILabel *timeLab;

@end

@implementation YXCommentsCell

- (void)setModel:(YXMessageModel *)model {
    _model = model;
    
    _titleLab.text = model.title;
    [_picImageView sd_setImageWithURL:[NSURL URLWithString:model.url] placeholderImage:[UIImage imageNamed:@"logo"]];
   _contentLab.text = model.content;
    _timeLab.text = [UILabel formateData:model.createTime];
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
